package cn.vendai.com.config;

import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig {
    @Bean
    public RequestInterceptor feignRequestInterceptor() {
        return template -> template.header("X-Feign-Request", "true");
    }
}
